<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_helper('Javascript','Asset','I18N'); ?>


<div class="sf_admin_form">
  <?php echo form_remote_tag(array( 'url'      => '@comment_save',
                                    'update'   => 'comment_list',
                                    'complete' => 'jQuery("#comment_content").val("");'
   ))?>
    <?php echo $form->renderHiddenFields(false) ?>

    <?php if ($form->hasGlobalErrors()): ?>
      <?php echo $form->renderGlobalErrors() ?>
    <?php endif; ?>

    <?php foreach ($configuration->getFormFields($form, $form->isNew() ? 'new' : 'edit') as $fieldset => $fields): ?>
      <?php include_partial('idea/form_fieldset', array('Idea' => $Idea, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset)) ?>
    <?php endforeach; ?>
    

    <input type="submit" value="<?php echo __('Add comment') ?>"/>
  </form>
</div>
